#! /usr/bin/env python

PACKAGE='compressed_image_transport'

from dynamic_reconfigure.parameter_generator_catkin import *

gen = ParameterGenerator()

format_enum = gen.enum( [gen.const("jpeg", str_t, "jpeg", "JPEG lossy compression"),
                         gen.const("png", str_t, "png", "PNG lossless compression")],
                        "Enum to set the compression format" )
gen.add("format", str_t, 0, "Compression format", "jpeg", edit_method = format_enum)
gen.add("jpeg_quality", int_t, 0, "JPEG quality percentile", 80, 1, 100)
gen.add("png_level", int_t, 0, "PNG compression level", 9, 1, 9)

exit(gen.generate(PACKAGE, "CompressedPublisher", "CompressedPublisher"))
